import request from "@/utils/request.js";

// 轮播请求接口
export function apigetBannber(data){
	return request.request({
		url:'/banner',
		method:'GET',
		data
	})
}
//推荐歌单
export function apigetRecommendSongs(data){
	return request.request({
		url:'/personalized',
		method:'GET',
		data
	})
}
//新碟新歌
	
export function apigetTopAlbum(data){
	return request.request({
		url:'/album/newest',
		method:'GET',
		data
	})
}

//精选视频
export function apigetRelatedVideo(data){
	return request.request({
		url:'/mv/all',
		method:'GET',
		data
	})
}
export function apigetNavList(data){
	return request.request({
		url:'/video/group/list',
		method:'GET',
		data
	})
}
//登录接口
export function apiLogin(data){
	return request.request({
		url:'/test/login',
		method:'POST',
		data
	})
}
//用户详细信息
export function apiUserDetail(data){
	return request.request({
		url:'/user/detail',
		method:'GET',
		data
	})
}
//用户取消
export function apiLogout(data){
	return request.request({
		url:'/logout',
		method:'GET',
		data
	})
}
//广告接口
export function apiAd(data){
	return request.request({
		url:'/adMock',
		method:'GET',
		data
	})
}
//热搜榜接口
export function apigetSearchHot(data){
	return request.request({
		url:'/search/hot/detail',
		method:'GET',
		data
	})
}
//搜索接口
export function apiSearchSuggest(data){
	return request.request({
		url:'/search/suggest',
		method:'GET',
		data
	})
}
//歌单接口
export function apiAlbumDetail(data){
	return request.request({
		url:'/playlist/detail',
		method:'GET',
		data
	})
}
//获取歌曲连接
export function apigetSongUrl(data) {
	return request.request({
		url: '/song/url',
		method: 'GET',
		data
	})
}
// 获取歌曲详情
export function apigetSongDetail(data) {
	return request.request({
		url: '/song/detail',
		method: 'GET',
		data
	})
}
